package com.ggh.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author jj
 * @date 2019/10/15 10:42
 * 充值
 */
@Data
@TableName("recharge")
public class Recharge extends Model<Recharge> {
    /**
     * id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private int id;
    /**
     * 用户id
     */
    private int userid;
    /**
     * 充值金额
     */
    private float chongzhiMoney;
    /**
     * 充值人
     */
    private String receiveHumanName;
    /**
     * 收款人
     */
    private String receiveName;
    /**
     * 收款账户
     */
    private String receiveCount;
    /**
     * 转账类型
     */
    private int type;
    /**
     * 状态
     * 0未开始
     * 1进行中
     * 2成功
     * 3失败
     */
    private int status;
    /**
     * 创建时间
     */
    @TableField("creaty_time")
    private Date creatyTime;
    /**
     * 成功时间
     */
    @TableField("succee_time")
    private Date succeeTime;


    @Override
    protected Serializable pkVal() {
        return id;
    }
}
